package com.sojoys.artifact.constant;

import java.io.File;

/**
 * 数据生成器生成文件类型
 * 
 * @author win7
 *
 */
public enum DataModelFileEnum {
	POJO("bean",""),
	CACHE("cache","Cache"),
	DAO("dao","DaoImpl"),
	JEDIS("jedis","JedisImpl"),
	CFG("cfg","Cfg"),
	CFG_CACHE("cfg/cache","CfgCache"),
	CFG_LOAD("","ConfigLoad"),
	SAVE("","DbSave"),
	STATIC_RESOURCE("","StaticResource"),
	LOCK("","");
	
	private String val;
	private String suffix;
	private DataModelFileEnum(String val, String suffix) {
		this.val = val;
		this.suffix = suffix;
	}
//	public String getVal() {
//		return val;	
//	}
	public String getPath() {
		return val.replace("/", File.separator);			
	}
	
	public String getPkg() {
		return val.replace("/", ".");			
	}
	
	public String getSuffix() {
		return suffix;
	}
}
